
public class main {

	public static void main(String[] args) {
		
		Vehicule[] v = new Vehicule[2];
		
		v[0] = new CamionBache("CAB 1X", 5);
		v[1] = new CamionCiterne("CAC 1Y", 9);
		
		Convoi c = new Convoi(v);
		
		
		System.out.println(c);
	
	}
	
	public static float conso(float v, float p) {
		return v + p;
	}

}
